package com.hnevc.sharerestuarnt;

import java.util.ArrayList;

public class Order {
	int status;//0 表示未结账，1表示已结账
	Desk desk;
	User user;
	int orderId;
	ArrayList<Dish> dishs = new ArrayList<>();
	public ArrayList<Dish> addDish(Dish dish) {
		dishs.add(dish);
		return dishs;
	}
	public ArrayList<Dish> getDishs() {
		return dishs;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public int getStatus() {
		return status;
	}
	public Order() {
		// TODO Auto-generated constructor stub
	}
	public Order(int orderId,User user, Desk desk) {
		this.orderId = orderId;
		this.user = user;
		this.desk = desk;
		this.status =0;
	}
	public Order(int orderId,User user) {
		this.orderId = orderId;
		this.user = user;
		this.status =0;
	}
	
	public Desk getDesk() {
		return desk;
	}
	public User getUser() {
		return user;
	}
	public void setDesk(Desk desk) {
		this.desk = desk;
	}
	public void setUser(User user) {
		this.user = user;
	}
}
